#!/bin/bash
pid=$1
if test -z $pid
then
echo "pid can not be null"
exit
else
echo "checking"
fi
tid=`ps -mp 7388 -o THREAD,tid,time|sort -k 2 -n|tail -2|head -1|awk {'print $8'}`
a16=`printf "%x\n" $tid`
jstack $pid | grep $a16 -A 30

